package cn.firstquestion;

public abstract class Teacher {
    private String name;
    private String gender;
    private int age;
    private int teaAge;
    private String workSite;

    public Teacher(){

    }

    public Teacher(String name, String gender, int age, int teaAge, String workSite) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.teaAge = teaAge;
        this.workSite = workSite;
    }

    public abstract void teaching();

    public void show(){
        String str=String.format("姓名%s,性别%s,年龄%d,教龄%d,所在中心%s",name,gender,age,teaAge,workSite);
        System.out.println(str);
    }
}
